 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/admin.css" />
<link href="/style/global.css" rel="stylesheet" type="text/css" />
<link href="/style/frame.css" rel="stylesheet" type="text/css" />
<style>
html{ overflow-x:auto;}
body{_width:auto;min-width:1000px;}
</style>
<script src="js/jquery.js"></script>
<script src="js/artDialog/jquery.artDialog.js?skin=chrome"></script>
<script src="js/artDialog/plugins/iframeTools.source.js"></script>
<script src="js/comm.js"></script>
<script>
$(function(){
	$('#menus a').live('click',function(){
		$('#menus a').attr('class','');
		$(this).addClass('cur');
	});
	
	$("#leftMenus dt").live('click',function(){
		if($(this).attr('class') == 'plus'){
			$(this).attr('class','');
			$(this).next('dd').attr('class','show');			
		}else{
			$(this).attr('class','plus');
			$(this).next('dd').attr('class','none');
		}
	});
	$("#openClose").live('click',function(){
		if($(this).attr('class')=="open") {
			$("#leftMenus").width(10);
			$("#leftMenus dl").hide();
			$(this).attr("class",'close');
			$('#content').width($('#content').width() + 170);
		} else {
			$("#leftMenus").width(175);
			$("#leftMenus dl").show();
			$(this).attr("class",'open');
			$('#content').width($('#content').width() - 170);
		}
		return false;
	});
});




</script>
</head>
<body>

<!-- ocx 控件和控件js初始化 -->
<OBJECT ID='nyOcx' name='nyOcx' CLASSID='CLSID:0D2BE633-A7F8-4DB1-A25B-EC610EA2ADEA' style="display:none;" hspace=0 vspace=0 ></OBJECT>
<script language="javascript" event="OnCallIn(teleNo);" for="nyOcx">
	JYTopTele.isCalling = true;
	// 处理来电弹屏
	$('#callin-dlg-teleno').text(teleNo);
	JYCsm.showMsg($('#callin-dlg').html(), {title: '您有来电', id: 'calling-oper-dlg'});
	JYTopTele.callType = '1';
</script>
<script language="javascript" event="OnCallOut(teleNo);" for="nyOcx">
	JYTopTele.isCalling = true;
	if (typeof JYTopTele.onCallOut == 'function') {
		JYTopTele.onCallOut();
	}
	JYTopTele.callType = '2';
</script>
<script language="javascript" event="OnHangUp(teleNo);" for="nyOcx">
	JYTopTele.isCalling = false;
	if (typeof JYTopTele.onHangUp == 'function') {
		JYTopTele.onHangUp();
	}
	// 保存记录 ftp上传文件
	JYTopTele.saveCallRecord();
</script>
<script src="js/ocx.js"></script>
<script>
var JYUser = {
		userId: '<?php echo CSM_USER_ID?>',
		userNo: '',
		userName: '<?php echo CSM_USER_NAME?>',
		unitId: '<?php echo CSM_UNIT_ID?>'
	};
var JYTopTele = new NYTele({ocxControl: document.getElementById('nyOcx')});
var JYTopFtp = new NYFtp({ocxControl: document.getElementById('nyOcx')});
$(function () {
	JYTopTele.login();
});
</script>
<!-- 来电提醒对话框 -->
<div id="callin-dlg" style="display:none;">
<script>
$('#btn_listen').click(function () {
	JYTopTele.answer();
	// 转入来电个人信息页面
	JYTopTele.callNo = $('#callin-dlg-teleno').text();
	JYCsm.closeWindow('calling-oper-dlg');
	JYCsm.openWindow('?c=patient&a=entry&phone='+JYTopTele.callNo, {title: '客户来电处理', width: 1120, height: 500, lock: true});
});
$('#btn_hangup').click(function () {
	JYTopTele.hangUp();
	JYCsm.closeWindow('callin-oper-dlg');
});
</script>
	<div class="msgBox">
    	<p>对方电话号码：<span id="callin-dlg-teleno">未知号码</span></p>
        <p class="pop">呼叫中......</p>
        <p><input id="btn_listen" class="btn_listen" name="" type="button" value="" /> <input id="btn_hangup" class="btn_hangup" name="" type="button" value="" /></p>
    </div>
</div>

<div id="header_all">
<div id="header">
	<img src="style/bg_header.jpg" height="57" width="1000" />
    <div id="menus">
        <ul>
			<li code='900'><a class="cur" href="javascript:_MD('welcome');">管理首页</a></li>
            <li code='1000'><a href="javascript:_MD('visit');">病人随访</a></li>
			<li code='11000'><a href="javascript:_MD('ask');">咨询管理</a></li>
            <li code='2000'><a href="javascript:_MD('send');">健康随行</a></li>
            <li code='3000'><a href="javascript:_MD('crm');">CRM</a></li>
            <li code='4000'><a href="javascript:_MD('call');">呼叫中心</a></li>
            <li code='5000'><a href="javascript:_MD('questionnaire');">满意度调查</a></li>
            <li code='6000'><a href="javascript:_MD('toushu');">投诉管理</a></li>
            <li code='7000'><a href="javascript:_MD('yuyue');">预约诊疗</a></li>
            <li code='8000'><a href="javascript:_MD('jixiao');">绩效管理</a></li>
            <li code='9000'><a href="javascript:_MD('analysis');">数据挖掘</a></li>
            <li code='10000'><a href="javascript:_MD('system');">系统设置</a></li>
        </ul>
        <div class="clear"></div>
    </div>
</div></div>
<div id="mininav">
    <div class="left"><font color="blue"><?php echo $_SESSION['user']['truename']?></font>，欢迎您的到来！ <span class="exit"><a href="/index.php?c=main&a=logout&demo=<?php echo $_REQUEST['c']?>">安全退出</a></span></div>
    <div class="right">日期：<?php $week = array('日','一','二','三','四','五','六');echo date('Y年m月d日').'&nbsp;星期'.$week[date('w')];?></div>
    <div class="clear"></div> 
</div>

<div id="warp">
<div id="leftMenus">
	<dl id="left_menu_dl"></dl>
	<a title="展开与关闭" class="open" style="display:none;outline-style: none; outline-width: medium; z-index:99" id="openClose" href="javascript:;"><span class="hidden">展开</span></a>
</div>

<div id="content">
	<iframe width="100%" scrolling="auto" height="auto" frameborder="0" id="fmMainContents" name="fmMainContents" src="index.php?c=demo&a=welcome"></iframe>
</div>
<div class="clear"></div>
</div>
<div id="footer">
	<span class="fRight">﹫2007-2012 深圳市宁远科技有限公司</span>
    人民医院CSM病人服务系统
</div>
<script>
_MD('welcome');
initPage();
$(window).resize(function(){
  initPage();
});
</script>
</body>
</html>
